<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head><title>上传头像</title></head>
<body>
<h3>上传头像</h3>
<form th:action="@{/uploadAvatar}" method="post" enctype="multipart/form-data">
  <input type="hidden" name="menteeId" th:value="${menteeId}" />
  <input type="hidden" name="advisorId" th:value="${advisorId}" />
  选择文件：<input type="file" name="file" required />
  <input type="submit" value="上传" />
</form>
</body>
</html>

